package com.hackintosh.flyweight.web;

/**
 * @description：
 * @author：twislyn
 * @date：Created in 2021/05/14
 * @modified By：
 * @version: 1.0
 */
public class WebTest {

    public static void main(String[] args) {
        WebSiteFactory factory = new WebSiteFactory();

        WebSite fx = factory.getWebSite("博客");
        fx.use(new User("小菜"));

        WebSite fl = factory.getWebSite("网站展示");
        fl.use(new User("老顽童"));

        WebSite fy = factory.getWebSite("博客");
        fy.use(new User("大鸟"));

        WebSite fm = factory.getWebSite("网站展示");
        fm.use(new User("桃谷六仙"));

        WebSite fz = factory.getWebSite("博客");
        fz.use(new User("娇娇"));

        WebSite fn = factory.getWebSite("网站展示");
        fn.use(new User("南海鳄神"));
    }

}
